% dprint /search.tpl
% include user
%	if(~ $#post_arg_term 0)
<p class="error">Hey, you didn't search for anything!</p>
% if not {
% include library
% include profile
% include feeds
% include indexer
<h2>Search results for <b>
% htmlencode $"post_arg_term
</b></h2>
<table><thead><tr><th>Type</th><th>Document</th><th>Owner</th><th>Changed</th><th>Rank</th><th>Other</th></tr>
% ifs=$nl for(r in `{indexer -s $post_arg_term}) {
%	switch($r) {
%	case library*
%		echo -n $r | library_search_result
%	case profile*
%		echo -n $r | profile_search_result
%	case feed*
%		echo -n $r | feed_search_result
%	case *
%		dprint BOZO $r
%	}
% }
</table>
% }